<template>
	<view class="content">
		<view class="list">
			<view class="label" v-for="(item,index) in list">
				{{item.label}}
			</view>
		</view>
	</view>
</template>

<script>
	import { dictDataType } from '@/services/api/dict';
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad(){
			this.loadData()
		},
		methods: {
			async loadData(){
				const res=await dictDataType({type:'common_doctor_dept'})
				this.list=res.data
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #F2F2F2;
	}
	.content{
		padding: 30rpx;
	}
	.list{
		display: flex;
		flex-wrap: wrap;
		.label{
			text-align: center;
			padding: 0 24rpx;
			min-width: 152rpx;
			height: 64rpx;
			background: #FFFFFF;
			border: 1px solid #DDDDDD;
			border-radius: 32rpx;
			font-size: 26rpx;
			line-height: 64rpx;
			margin: 8rpx;
		}
	}
	.title{
		text-align: center;
		margin-bottom: 20rpx;
		font-size: 32rpx;
	}
</style>
